<?php
namespace app\common\tool;

class Number extends Base {
	//订单号生成
	public function out_trade_no() {
		return 'order' . time() . rand(1000, 9999);
	}

	//退款号生成
	public function refund_out_trade_no() {
		return 'refund' . time() . rand(1000, 9999);
	}

	//余额充值订单号生成
	public function balance_order_out_trade_no() {
		return 'balance_order' . time() . rand(1000, 9999);
	}

	//余额充值退款单号生成
	public function balance_refund_out_trade_no() {
		return 'balance_refund' . time() . rand(1000, 9999);
	}
}
